CC=gcc # could be clang

default: ex1

greeter.o: greeter.c greeter.h
	$(CC) -c greeter.c -o greeter.o
    
antiGreeter.o: antiGreeter.c antiGreeter.h
	$(CC) -c antiGreeter.c -o antiGreeter.o

ex1.o: ex1.c
	$(CC) -c ex1.c -o ex1.o

ex1: greeter.o antiGreeter.o ex1.o
	$(CC) greeter.o antiGreeter.o ex1.o -o ex1

clean:
	rm *.o
	rm ex1
